package com.coding.mapper;

import com.coding.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * -- Created by IntelliJ IDEA.
 * -- REMARK:
 * -- User: tanwei
 * -- Date: 2020/7/3
 * -- Time: 11:57 下午
 * --
 */
@Mapper
@Repository
public interface DepartmentMapper {

    //获取所有部门
    List<Department> getDepartments();

     //通过地获取部门信息
    Department getDepartment(Integer id);
}
